using System;
using System.Collections.Generic;
using System.Text;
using SqlSugar;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 特殊红冲流程发票明细表
    /// </summary>
    [SugarTable("RedRushManualInvoice")]
    public class RedRushManualInvoice : BaseHead
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string RedRushManualInvoice_Name { get; set; }

        /// <summary>
        ///  状态 ,.未启用，1启用，2禁用
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        ///  创建人Id
        /// </summary>
        public string CreateUser { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string UpdateUser { get; set; }

        /// <summary>
        /// 客户代码/购方编号
        /// </summary>
        public string CustomCode { get; set; }

        /// <summary>
        /// 客户名称/购方名称
        /// </summary>
        public string CustomName { get; set; }

        /// <summary>
        /// 客户类型
        /// </summary>
        public string CustomType { get; set; }

        /// <summary>
        /// 申请内容
        /// </summary>
        public string ApplicationContent { get; set; }

        /// <summary>
        /// 开票内容
        /// </summary>
        public string InvoiceContent { get; set; }

        /// <summary>
        /// 税率
        /// </summary>
        public decimal? TaxRate { get; set; }

        /// <summary>
        /// 对应税收分类编码
        /// </summary>

        public string TaxClassificationNo { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal? Price { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public decimal? Quantity { get; set; }

        /// <summary>
        /// 发票总额
        /// </summary>
        public decimal? TotalInvoice { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 税额
        /// </summary>
        public decimal? Tax { get; set; }

        /// <summary>
        /// 不含税金额
        /// </summary>
        public decimal? TaxFreeAmount { get; set; }

        /// <summary>
        /// 产品组
        /// </summary>
        public string ProductGroup { get; set; }

        /// <summary>
        /// 物料号
        /// </summary>
        public string ItemNo { get; set; }

        /// <summary>
        /// 原发票金额（含税）
        /// </summary>
        public decimal? OriginInvoiceAmountHasTax { get; set; }

        /// <summary>
        /// 开票日期
        /// </summary>
        public DateTime? InvoiceDate { get; set; }

        /// <summary>
        /// 发票号码
        /// </summary>
        public string InvoiceNo { get; set; }

        /// <summary>
        /// 发票代码(原物理发票号)
        /// </summary>
        public string InvoiceCode { get; set; }

        /// <summary>
        /// 开票方会计凭证
        /// </summary>
        public string CertificateNo { get; set; }

        /// <summary>
        /// 收票方会计凭证
        /// </summary>
        public string RecipientCertificateNo { get; set; }

        /// <summary>
        /// 业务状态
        /// </summary>
        public int? BStatus { get; set; }

        /// <summary>
        /// 票易通备注
        /// </summary>
        public string PYTRemark { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public string Order { get; set; }

        /// <summary>
        /// 外键关联
        /// </summary>
        public Guid? RedRushApplication_Id { get; set; }


        [SugarColumn(IsIgnore = true)]

        public List<RedRushManualInvoiceCostCenter> CostCenterList { get; set; }

        /// <summary>
        /// 申请内容dave.wang
        /// </summary>
        public string ApplicationContentName { get; set; }



        /// <summary>
        /// 购方税号
        /// </summary>
        public string CustomTaxNo { get; set; }
        /// <summary>
        /// 购方电话
        /// </summary>
        public string CustomPhone { get; set; }
        /// <summary>
        /// 购方地址
        /// </summary>
        public string CustomAdress { get; set; }
        /// <summary>
        /// 购方银行名称
        /// </summary>
        public string CustomBankName { get; set; }
        /// <summary>
        /// 购方银行账号
        /// </summary>
        public string CustomBankAccount { get; set; }

        /// <summary>
        /// 票易通回传状态
        /// </summary>
        public int? PYTReciveState { get; set; }

        /// <summary>
        /// 票易通回传信息
        /// </summary>
        public string PYTRecivestateMessage { get; set; }

        /// <summary>
        /// 工程预收款分配编码
        /// </summary>
        public string AssignCode { get; set; }

        /// <summary>
        /// 销售部名称
        /// </summary>
        public string SaleDepartmentName { get; set; }
        /// <summary>
        /// 销售部代码
        /// </summary>
        public string SaleDepartmentCode { get; set; }
        /// <summary>
        /// 票易通下发发票金额
        /// </summary>
        public decimal? CurrentMoney { get; set; }
        /// <summary>
        /// 下发完成
        /// </summary>
        public bool? DownComplete { get; set; }


        /// <summary>
        /// SAP凭证2
        /// </summary>
        public string SAPVenderCode2 { get; set; }

        /// <summary>
        /// SAP凭证3
        /// </summary>
        public string SAPVenderCode3 { get; set; }

        /// <summary>
        /// SAP凭证3
        /// </summary>
        public string SAPVender18Info { get; set; }

        /// <summary>
        /// SAP凭证18
        /// wjz 2020年6月23日 10:30:59
        /// </summary>
        public string SAPVenderCode18 { get; set; }

        /// <summary>
        /// SAP凭证18
        /// wjz  2020年6月23日 10:31:06
        /// </summary>
        public string SAPVenderCode18Time { get; set; }

        /// <summary>
        /// SAP凭证98
        /// wjz  2020年6月23日 10:31:10
        /// </summary>
        public string SAPVenderCode98 { get; set; }

        /// <summary>
        /// 收票方公司代码
        /// </summary>
        public string ReceiverCompanyCode { get; set; }

        /// <summary>
        /// 收票方公司名称
        /// </summary>
        public string ReceiverCompanyName { get; set; }

        /// <summary>
        /// 信贷范围
        /// </summary>
        public string CreditScope { get; set; }

        /// <summary>
        /// 利润中心
        /// </summary>
        public string ProfitCenter { get; set; }

        /// <summary>
        /// 回款日期
        /// </summary>
        public string CollectionDate { get; set; }

        /// <summary>
        /// 付款条件
        /// </summary>
        public string CustomerPayment { get; set; }

        /// <summary>
        /// 是否已回款
        /// </summary>
        public bool? IsPaymentCollection { get; set; }

        /// <summary>
        /// 是否已冲销凭证
        /// </summary>
        public bool? IsVoucher { get; set; }


        /// <summary>
        /// 订单岗输入订单号
        /// </summary>
        public string ManualOrderNumber_X { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        public string ItemSpec { get; set; }
        /// <summary>
        /// 包装单位
        /// </summary>
        public string QuantityUnit { get; set; }

        /// <summary>
        /// 行数据
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<RedRushManualInvoiceCostCenter> innerLineData { get; set; }
    }
}
